package com.nuaa.yygh.hosp.repository;

import com.nuaa.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {


    //按照一定规则自动生成的方法，不用再去写实现
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
